package com.ce.pms.custservice.dao.impl;

import org.hibernate.Query;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.custservice.dao.ISignReadingDao;
import com.ce.pms.custservice.model.SignReadingRecordDO;
/***
 * 功能:阅签功能Dao实现类
 * @author 高嵩
 *
 */
public class SignReadingDaoImpl extends PmsBaseDaoImpl<SignReadingRecordDO> implements ISignReadingDao{


	 /**
	  * 功能描述:  根据事件ID查询阅签<br>
	  * @param custServEventID
	  * @return SignReadingRecordDO
	  * @roseuid 4943576F03A9
	  * Create author:高嵩 <br>
	  * Create on:2008-12-23  <br>
	  * Edit author:  <br>
	  * Edit on:    <br>
	  * Why:     <br>
	  */
	public SignReadingRecordDO getSignReadingByID(Long custServEventID) {
		// TODO Auto-generated method stub
		String hql = "from SignReadingRecordDO s where s.customerServiceEventDO.id = ?";
		Query query = super.createQuery(hql, custServEventID);
		return (SignReadingRecordDO)query.uniqueResult();
	}

}
